package org.jeecg.common.modules.order.mapper;

import org.apache.ibatis.annotations.Param;
import org.jeecg.common.modules.order.entity.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.common.modules.order.vo.OrderInfoReqVo;

import java.util.List;

/**
 * @Description: order
 * @Author: jeecg-boot
 * @Date:   2020-08-26
 * @Version: V1.0
 */
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    /**
     * 查询
     * @param id
     * @param status
     * @param userName
     * @param doctorName
     * @param dataStart
     * @param pageSize
     * @return
     */
    List<OrderInfoReqVo> selectOrderInfo(
            @Param("id") String id,
            @Param("status") Integer status,
            @Param("userName") String userName,
            @Param("doctorName") String doctorName,
            @Param("dataStart") Integer dataStart,
            @Param("pageSize") Integer pageSize);

    /**
     * 查询的总条数
     * @param id
     * @param status
     * @param userName
     * @param doctorName
     * @return
     */
    int getCount(
            @Param("id") String id,
            @Param("status") Integer status,
            @Param("userName") String userName,
            @Param("doctorName") String doctorName);

    /**
     * excel数据导出
     * @param ids
     * @return
     */
    List<OrderInfoReqVo> excelOrderInfo(@Param("ids") List<String> ids);
}
